< previous page page_436 next page >

Page 436
z0456-01.gif
Figure 13.14
Cavalier projections.
While distances are preserved along all three axes by a cavalier projection, distances in one direction are scaled by a factor of 1/2 in a cabinet projection. This makes cabinet projections a bit more aesthetically appealing than cavalier projections. Making the receding axis shorter than the others agrees more closely with orthographic projections and your visual experience, so the picture looks more realistic. Because you know the shortened lines are scaled by a factor of 1/2, you can still measure them meaningfully. Figure 13.15 shows three cabinet projections in which the Z axis is tilted by 45, 30, and 15 degrees.
Oblique Projections in Visual Basic
Figure 13.16 shows an oblique projection of the point (Px, Py, Pz) onto the X-Y plane. This is not a picture of some operation occurring in three dimensionsit is the actual projection onto a page in this book. In this projection, the Z axis makes angle q with the X axis. Distances parallel to the Z axis are scaled by a factor of S. The factor S is 1 for a cavalier projection and 1/2 for a cabinet projection.
Before projection, the point has X coordinate Px. Because distances parallel to the Z axis are scaled by a factor of S, the point's projection is distance S * Abs(Pz) from the point's original position. In this case, the Z coordinate of the point Pz is negative, so this distance is S * Pz.
Because lines parallel to the Z axis are tilted by angle q, the distance between the point's X coordinate and the projection's X coordinate is S * Pz * Cos(q). Because the point starts with X coordinate Px, the projection's X coordinate is Px + S * Pz * Cos(q).
z0456-02.gif
Figure 13.15
Cabinet projections.

 
< previous page page_436 next page >